package com.zfast.yugioh.constant;


/**
 *  正则枚举
 * @author  zgn
 * @date    2022/2/16 0016
*/
public enum VerifyeEnum {

    isNumeric("正整数","[0-9]+"),
    isFirstCharCase("叶子对象级首字母大写","[A-Z][a-zA-Z]*"),
    isPositiveNumber("正数","^(0\\.0*[1-9]+[0-9]*$|[1-9]+[0-9]*\\.[0-9]*[0-9]$|[1-9]+[0-9]*$)"),
    ;


    private String description;
    private String regex;

    VerifyeEnum(String description, String regex) {
        this.description = description;
        this.regex = regex;
    }

    public String getRegex() {
        return regex;
    }
    public String getDescription() {
        return description;
    }
}
